const http = require('http')
const server = http.createServer()
server.on('request', (req, res) => {
    console.log(req.url);
    res.end(req.method)
})
server.listen(3000, () => {
    console.log("你正在访问3000端口");

})